using BruteForce.UserInterface.Abstracts;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BruteForce.UserInterface.UIControls
{
    public class Image : AbstractUIControl
    {
        private readonly Texture2D _image;


        public Image(Texture2D image, string name, Rectangle surroundingRectangle)
            : base(name, surroundingRectangle)
        {
            _image = image;
        }

        public override void Update()
        {
        }


        public override void Draw(GameTime gameTime)
        {
            BFGame.SpriteBatch.Draw(_image, CurrentUIcontrolRectangle, Color.White);
        }
    }
}